package com.training.java.core.collections.post15.Set.Television;

import java.util.HashSet;
import java.util.Set;

public class TelevisionSetDemo {

	public static void main(String[] args) {

		Television tv1 = new Television("LG", "LED", true);

		Television tv2 = new Television("Sony", "LCD", false);
		Television tv3 = new Television("Sony", "LCD", false);
		Television tv4 = new Television("Sharp", "LED", true);
		Television tv5 = new Television("Sharp", "LED", true);

		Set<Television> tvs = new HashSet<Television>();

		tvs.add(tv1);
		tvs.add(tv2);
		tvs.add(tv3);
		tvs.add(tv4);
		tvs.add(tv5);

		for (Television aTelevision : tvs) {
			System.out.println("Company = " + aTelevision.getCompany());
			System.out.println("Type = " + aTelevision.getType());
			System.out.println("3D Enabled = " + aTelevision.isenabled3D());

		}

	}

}
